package net.shopxx.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;


/**
 * 实体类 - 首页楼层
 */

@Entity
public class Indexfloortab extends BaseEntity {
	/**
     *
     */
    private static final long serialVersionUID = 5974938075809321737L;
    private String name;
	private Integer orderList;
	private Boolean isEnabled;
	private Indexfloor indexfloor;
	private List<Product> productList;
	@Column(length=255)
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Integer getOrderList() {
        return orderList;
    }
    public void setOrderList(Integer orderList) {
        this.orderList = orderList;
    }
    public Boolean getIsEnabled() {
        return isEnabled;
    }
    public void setIsEnabled(Boolean isEnabled) {
        this.isEnabled = isEnabled;
    }
    @ManyToOne(fetch = FetchType.LAZY)
    public Indexfloor getIndexfloor() {
        return indexfloor;
    }
    public void setIndexfloor(Indexfloor indexfloor) {
        this.indexfloor = indexfloor;
    }
    @ManyToMany(fetch = FetchType.LAZY)
    public List<Product> getProductList() {
        return productList;
    }
    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }
  
    
   
   
	
	
}